Next | Prev | Up | Top | Contents | Index
Finding an Unresolved Symbol With ld
You can use ld to locate unresolved symbols. For example, suppose you're compiling a program, and ld tells you that you're using an unresolved symbol. However, you don't know where the unresolved symbol is referenced.
To find the unresolved symbol, enter:
ld -ysymbol file1... filen
You can also enter:
cc prog.o -Wl,-ysymbol
The output lists the source file that references symbol.
Next | Prev | Up | Top | Contents | Index